var Forguncy;
(function(n) {
    n.RunJavaScriptCommandFunctions = {
        "FGC_登录__AZ2_命令": function() {
            ga("send", "event", "Demo Click", "活字格", "图书借阅系统")
        },
        "FGC_登录__BG2_命令": function() {
            ga("send", "event", "Demo Click", "活字格", "图书借阅系统")
        },
        "读者信息_新增页__Y23_命令": function() {
            var t = n.Page.getCell("userName").getValue(),
                i = t,
                r = n.Page.getCell("userEmail").getValue();
            n.addUser(t, "123456", i, r, function() {
                n.addUserToRole(t, "读者", function() {
                    alert("添加用户成功");
                    $("[fgcname=back]").find("button").click()
                }, function(n) {
                    alert("添加用户失败:\n" + n);
                    $("[fgcname=deleteUser]").find("button").click()
                })
            }, function(n) {
                alert("添加用户失败:\n" + n);
                $("[fgcname=deleteUser]").find("button").click()
            })
        },
        "读者中心首页_手机版__E19_命令": function() {
            n.Common.forguncyPost("Account/Logout", {
                userLoginToken: window.localStorage.getItem("userLoginToken")
            }, function() {
                window.history.back()
            })
        },
        "首页导航_母版页__BJ10_命令": function() {
            ga("send", "event", "Demo Click", "活字格", "图书借阅系统")
        }
    }
})(Forguncy || (Forguncy = {}))